#pragma once

#include "common.h"

class Framebuffer
{
public:
    Framebuffer();
    ~Framebuffer();
    int Init();
    int getFramebufferinfo();
    void display_rgb_to_framebuffer(unsigned char* rgb_data,int height,int width);
    int closeFramebuffer();

    int iFd;
    int iWidth;
    int iHeight;
    int rgb_type;
    long screen_size; 
    unsigned char* fbMapMem;
};